<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<script src="__PUBLIC__/Intesys/default/javascripts/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/Intesys/default/javascripts/jquery-ui.js" type="text/javascript"></script>
<script src="__PUBLIC__/Intesys/default/javascripts/bootstrap.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/Admin/js/artDialog/artDialog.source.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/plugins/iframeTools.source.js"></script>
<script src="/Public/Home/TemplateDefault/js/jquery.cookie.js"></script> 
<a href="javascript:void(0);"></a>














<!--<footer class="copyright">
  <div class="row">
    <div class="col-xs-12">
      <p>© 2016 MWTH,  Privacy · Terms</p>
    </div>
  </div>
</footer>-->
</div>





<!-- -->

<style>
 

	.aui_state_focus .aui_title{background:#12B7F5;}
	.aui_state_focus .aui_ne,.aui_state_focus .aui_nw{background:#12B7F5;}
	
	.aui_state_focus .aui_e,.aui_state_focus .aui_w{background:#F7F7F7;}
	
	.aui_titleBar {
  width: 100%;
  height: 0;
  position: relative;
  bottom: 45px;
  _bottom: 0;
  _margin-top: -30px;
}.aui_title {
  height: 45px;
  line-height: 45px;
  padding: 0 25px 0 0;
  _padding: 0;
  text-indent: 12px;
  color: #FFF;
  font-size:14px;
  font-weight: 700;
  text-shadow: none;
}.aui_close {
  top: 12px;
  right: 9px;
  
}
	.aui_state_focus .aui_sw,.aui_state_focus .aui_se,.aui_state_focus .aui_s{background:#F7F7F7; display:none;}
	.aui_state_focus .aui_content{display:block;}
	.aui_state_focus .aui_n{background:#12B7F5; overflow:hidden; height:45px;}
	.aui_state_focus table.aui_border, .aui_state_focus table.aui_dialog{width:100%;}
	.aui_state_focus .aui_outer{display:block; box-shadow:none;}
	
	.aui_state_focus .aui_nw,.aui_state_focus .aui_ne,.aui_state_focus .aui_se,.aui_state_focus .aui_sw{width:0;}
	.aui_state_focus .aui_title{text-align:left;}
	.padding0{padding:0;}
	
	

</style>

<!-- -->







<!-- 解决手机端模态框表单错位 -->











<if condition="isMobile()"> 
  <style>


    .auii_statei_focus{position:relative !important; top:0 !important; left:0 !important; width:auto !important;}
    .auii_statei_focus td.aui_n{background:#12B7F5; position:static !important;}
	.auii_statei_focus .aui_title{background:#12B7F5;}
	.auii_statei_focus .aui_ne,.auii_statei_focus .aui_nw{background:#12B7F5;}
	
	.auii_statei_focus .aui_e,.auii_statei_focus .aui_w{background:#F7F7F7;}
	
	
	.auii_statei_focus .aui_sw,.auii_statei_focus .aui_se,.auii_statei_focus .aui_s{background:#F7F7F7; display:none;}
	.auii_statei_focus .aui_content{display:block;}
	.auii_statei_focus .aui_nw{height:45px;}
	
	.auii_statei_focus .aui_titleBar{top:0; position:absolute; bottom:inherit;}
	.auii_statei_focus table.aui_border, .auii_statei_focus table.aui_dialog{width:100%;}
	.auii_statei_focus .aui_outer{display:block; box-shadow:none;}
	
	.auii_statei_focus .aui_nw,.auii_statei_focus .aui_ne,.auii_statei_focus .aui_se,.auii_statei_focus .aui_sw{width:0;}
	.auii_statei_focus .aui_title{text-align:center;}
	.auii_statei_focus .aui_close{left:4px; right:inherit; top:14px; background-image:url(/Public/bg_css3.png);}
	.padding0{padding:0;}
	
	
	.auii_statei_focus button.btn-primary{position:absolute; top:8px; right:8px; background-color:transparent; border-color:#fff; padding:3px 8px;}
	
	.auii_statei_focus .aui_title {
  height: 45px;
  line-height: 45px;
  font-size:16px;
  font-weight:normal;
  text-shadow:none;
}
	/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar
{
    width: 0;
    height: 0;
    background-color: #F5F5F5;
}
 
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 0;
    background-color: #F5F5F5;
}
 
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
    border-radius: 0;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}
</style>
  

<else/>



</if>



<script>


    function _openWindow{$name}(url, width, title, buttontitle, callback, source){
		var lock = true;
		var height = $(window).height() - 200;
		<if condition="isMobile()">
			width = '100%';
			lock = false;
			var height = $(window).height() - 45;
			</if>
		var mydialog = art.dialog.load(url, {init:function(){
			//打开窗口后隐藏其它不必要元素
			
			//alert($('.aui_content').html());
			 
			hideLayer();
			
			<if condition="isMobile()">
			$('.modal-shiftfix').addClass('hidden');
			$('body').addClass('padding0');
			$('.aui_state_focus').addClass('auii_statei_focus');
			//插入按钮前要清空原来的按钮
			$('.auii_statei_focus .aui_titleBar button').remove();
			var okBtn = $('.auii_statei_focus .aui_buttons').html();
			$('.auii_statei_focus .aui_buttons').hide();
			$(okBtn).insertAfter('.aui_close');
			$('.auii_statei_focus .aui_titleBar button').each(function(index, element) {
                $(this).click(function(e) {
                    $('.auii_statei_focus .aui_buttons button').eq(index).trigger('click');
                });
            });
			
			 
			
			</if>
			if(buttontitle == ''){
				 $('.auii_statei_focus .aui_titleBar button').html($('.auii_statei_focus .OptionBtn').html());
			 }if(title == ''){
				 $('.auii_statei_focus .aui_titleBar .aui_title').html($('.auii_statei_focus .OptionTitle').html());
			 }
		},width: width, height: height,lock:lock,title:title,ok:function(){
			
			
			
			
			if(callback != null){
				callback();
				mydialog.close(); 
				return false;
			}
			
			$(".checkoutform:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(data,s){
								if(s.type == 1){
									$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								}
							},
							callback:function(data){
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info); 
									//alert(id);
									
									//更新列表
									updateList();
									mydialog.close();
								}
							}
						});
			
			
			$('.checkoutform').submit();
			
			
			return false;
			
			
			
			
			
		},okVal:buttontitle,close:function(){
			//alert($('.aui_title .btn.btn-primary').html());
			//去除按钮
			//$('.auii_statei_focus .aui_titleBar .btn.btn-primary').remove();
			$("html,body").animate({scrollTop:$.cookie('scroll_hidden')},100);
			$('.modal-shiftfix').removeClass('hidden');
			$('body').removeClass('padding0');
		}});
	}
    
	
	
	
	
	
</script>


</body>
</html>
